const tableConfig = {
	stripe: true,
	border: true,
	maxHeight: '80vh',
	columns: [
		{ label: '证件号码', prop: 'idCard', plusXin: '2,2' },
		{ label: '服务对象', prop: 'oldmanName' },
		{ label: '能力等级', prop: 'abilityLevelLabel' },
		{ label: '联系方式', prop: 'oldmanPhone', plusXin: '5,2' },
		{ label: '养老机构', prop: 'organizationName' },
		{ label: '服务组织统一社会信用代码', prop: 'creditCode' },
		{ label: '服务人员', prop: 'nurseName' },
		{ label: '服务项目', prop: 'itemName' },
		{ label: '服务时间', prop: 'nursingTime' },
		{
			label: '操作',
			prop: 'menu',
			width: 120,
			fixed: 'right',
		},
	],
}

// 详情
export const detailConfig = {
	inline: false,
	showBtn: false,
	labelPosition: 'left',
	column: [
		{
			type: 'DividerHtml',
			modelValue: '服务对象信息',
			span: 24,
		},
		{ label: '服务组织机构名称', prop: 'organizationName', span: 12 },
		{ label: '机构统一社会信用代码', prop: 'creditCode', span: 12 },
		{ label: '服务对象', prop: 'oldmanName', span: 12 },
		{ label: '服务对象性别', prop: 'genderLabel', span: 12 },
		{ label: '证件号码', prop: 'idCard', span: 12 },
		{ label: '联系方式', prop: 'oldmanPhone', span: 12 },
		{ label: '能力等级', prop: 'abilityLevelLabel', span: 12 },
		{ label: '入住楼栋', prop: 'checkinBuilding', span: 12 },
		{ label: '入住楼层', prop: 'checkinFloor', span: 12 },
		{ label: '入住房间', prop: 'checkinRoom', span: 12 },
		{ label: '入住床位号', prop: 'checkinBedCode', span: 12 },
		{
			type: 'DividerHtml',
			modelValue: '护理服务信息',
			span: 24,
		},
		{ label: '服务项目', prop: 'itemName', span: 24 },
		{ label: '应收价格', prop: 'receivableAmount', span: 12 },
		{ label: '实收价格', prop: 'realAmount', span: 12 },
		{ label: '护理人员', prop: 'nurseName', span: 12 },
		{ label: '护理员身份证号', prop: 'nurseIdCard', span: 12 },
		{ label: '护理人联系方式', prop: 'nursePhone', span: 12 },
		{ label: '护理地址', prop: 'nurseAddress', span: 12 },
		{ label: '护理时间', prop: 'nursingTime', span: 12 },
	],
}

export const importConfig = {
	tabSteps: [
		{
			label: '下载模板',
			download: '下载模板',
			active: 1,
			rules: [
				{
					label: '下载最新导入模板。共1个：',
					children: [
						{
							label: '《护理服务记录》',
							link: true,
							url: 'view_dpNursingRecord_downloadTemplate',
						},
					],
				},
			],
		},
		{
			label: '导入信息',
			description: '',
			uploadTip: '护理服务记录表',
			active: 2,
			url: 'view_dpNursingRecord_import',
			code: 3006,
			rules: [
				{
					label: '导入规则说明:',
					children: [
						{
							label: '(1)导入模式为“覆盖导入”，待导入的信息会覆盖平台已存在的',
						},
					],
				},
			],
		},
	],
}

export const baseConfig = {
	pageName: '护理服务记录',
	dictcodes: [],
	rowKey: 'id',
	tipLabel: 'oldmanName',
	paramsObj: {
		code: 3006,
	},
	api: {
		index: 'view_dpNursingRecord_page',
		delete: 'view_dpNursingRecord_del',
		import: 'view_dpNursingRecord_import',
		export: 'view_dpNursingRecord_export',
	},
	auth: {
		index: 'view_dpNursingRecord_page',
		delete: 'view_dpNursingRecord_del',
		import: 'view_dpNursingRecord_import',
		export: 'view_dpNursingRecord_export',
		mulitSet: 'mulitSet',
	},
	menuBtn: [
		{
			icon: 'detail',
			label: '查看',
			type: 'primary',
			operate: 'detail',
			auth: 'view_dpNursingRecord_page',
			text: true,
			show: true,
		},
	],
	dialogConfig: {
		width: '80%',
	},
	searchConfig: {
		inline: true,
		showBtn: true,
		labelPosition: 'left',
		column: [
			{ label: '证件号码', prop: 'idCard', type: 'input', span: 6 },
			{ label: '服务对象', prop: 'oldmanName', type: 'input', span: 6 },
			{ label: '服务项目', prop: 'itemName', type: 'input', span: 6 },
			{ label: '养老机构', prop: 'organizationName', type: 'input', span: 6 },
			{ label: '服务人员', prop: 'nurseName', type: 'input', span: 6 },
			{ label: '服务时间', prop: 'nursingTimeBetween', type: 'dateBetween', span: 8 },
		],
	},
	importConfig,
	tableConfig,
	detailConfig,
}
